home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1991: Code Warrior / bincue / Code Warrior.bin / Tools & Apps (Moof!) / Testing & Debugging / Report Error 1.1 / dialogUtilities.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-27  |  1.3 KB  |  44 lines  |  [TEXT/KAHL]

  1. /*================================================================================
  2.     dialogUtilities.h
  3.     
  4.     Greg Anderson
  5.     28 June 1991
  6.     greggor@apple.com
  7.         
  8.     This file contains various and sundry dialog box utility routines
  9.     
  10. ================================================================================*/
  11. #ifndef __TYPES__
  12. #include <Types.h>
  13. #endif
  14. #ifndef __DIALOGS__
  15. #include <Dialogs.h>
  16. #endif
  17.  
  18. /*
  19. // This is the structure of an item in a dialog item list.
  20. // See IM I-427 for an explanation of the complete format
  21. // of a DITL
  22. */
  23. typedef struct
  24. {
  25.     long            placeholder;
  26.     Rect            location;
  27.     unsigned char    itemType;
  28.     unsigned char    extraLength;
  29. } DITLitem;
  30.  
  31. /*
  32. // Prototypes for dialogUtilities.c
  33. */
  34. pascal void                CenterAndShowDialog(DialogPtr dlog);
  35. pascal short            AddNewUserItem( DialogPtr dlog );
  36. pascal void                DrawDefaultProc(DialogPtr dlog, short item);
  37. pascal short            InstallDefaultOutline(DialogPtr dlog, short button);
  38. pascal void                DrawActiveItemProc(DialogPtr dlog, short item);
  39. pascal short            InstallActiveItemOutline(DialogPtr dlog, short button);
  40. pascal void                MoveOutline(DialogPtr dlog, short userItem, short button);
  41. pascal void                SetItemHandle( DialogPtr dlog, short whichItem, Handle newItem );
  42. Point                    GetItemPoint( DialogPtr dlog, short itemNum );
  43. pascal void                EnableButton(DialogPtr dlog, short button,Boolean enable);
  44.